package cn.kgc.appinfo.service.impl;

import cn.kgc.appinfo.entity.AppVersion;
import cn.kgc.appinfo.mapper.AppVersionMapper;
import cn.kgc.appinfo.service.AppVersionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AppVersionServiceImpl implements AppVersionService {

    @Autowired
    private AppVersionMapper appVersionMapper;

    @Override
    public List<AppVersion> selectAppVersionByAppId(Integer appId) {
        return appVersionMapper.selectAppVersionByAppId(appId);
    }

    @Override
    public int saveAppVersion(AppVersion appVersion) {
        return appVersionMapper.saveAppVersion(appVersion);
    }
}
